package com.designpatterns.Balking;

/**
 * Created by 41579 on 2017/6/2.
 */
public class SaveThread implements Runnable{
    private Data data;

    public SaveThread(Data data) {
        this.data = data;
    }

    @Override
    public void run() {
        for(int i=0;true;i++){
            data.save();
        }
    }
}
